#include "gl.h"
#include "glut.h"
#include "vesa_ext.h"
#include <klibc/string.h>


void 
glutSwapBuffers()
{
	memcpy(vesa_buffer, gl_buffer, gl_buffer_size);
}


int
glutCreateWindow(char *title)
{
	
	return 0;
}



void 
glutInit(int argc, char **argv)
{
	
}


void 
glutInitDisplayMode (int flags)
{
	
}
	
void 
glutInitWindowSize (int x, int y)
{
}


void 
glutInitWindowPosition(int x, int y)
{
	
}


void 
glutDisplayFunc(void (*draw)())
{
	glut_draw_cb = draw;
}


void
glutMainLoop()
{
	while(1)
		glut_draw_cb();
}
